package com.holiday.eshop.module.protocol;

import com.google.gson.JsonObject;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * @author
 * @version 1.0
 * @date 2017/4/21
 */

public interface RetrofitService {
    
    public String HOST = "http://10.0.3.2:8080/market/";
    
    String Home="home";
    String GET_LOGIN = "login";
    
    int HTTP_GET_HOME = 1;
    int HTTP_GET_LOGIN = 2;
    
    @GET(Home)
    public Call<JsonObject> getHome();    
    
    @GET(GET_LOGIN)
    public Call<JsonObject> getLogInByNormal(@Query("type") int type, @Query("username") String username, @Query("password") String password);
    
}
